package com.seecen.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seecen.pojo.entity.Contract;
import com.seecen.service.ContractService;
import com.seecen.mapper.ContractMapper;
import org.springframework.stereotype.Service;

/**
* @author dell
* @description 针对表【hm_contract(电子合同表)】的数据库操作Service实现
* @createDate 2025-10-20 12:17:21
*/
@Service
public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
        implements ContractService{

    @Override
    public Contract getContractByNo(String contractNo) {
        LambdaQueryWrapper<Contract> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Contract::getContractNo, contractNo);
        return this.getOne(queryWrapper);
    }
}



